package ch07;
/**
 * Created by Think on 2016/4/16.
 */
import static java.lang.System.out;
import java.time.*;

public class ZonedDateTimeDemo2 {
    public static void main(String[] args) {
        LocalTime localTime = LocalTime.of(0, 0, 0);
        LocalDate localDate = LocalDate.of(2016, 4, 16);
        ZonedDateTime zonedDateTime = ZonedDateTime.of(
                localDate, localTime, ZoneId.of("Asia/Shanghai"));

        out.println(zonedDateTime);
        out.println(zonedDateTime.toEpochSecond());
        out.println(zonedDateTime.toInstant().toEpochMilli());
    }
}